package test;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class _change_ {
    public static void main(String[] args) {
        Set hs = new HashSet();
        hs.add(1);
        hs.add(2);
        Set hs2 = new HashSet();
        hs2.add(0);
        hs2.add(2);
        hs.addAll(hs2);
        System.out.println(hs);
        for (int i = 0; i < 3; i++) {
            Iterator it = hs.iterator();
            while (it.hasNext()){
//                System.out.println("HS:"+it.next());
//                int temp = Integer.valueOf(it.next().toString());

//                hs.add(temp);
                System.out.println((int)(it.next()));
            }
        }
    }
}
